#ifndef _YL_MESSAGE_CLASS_
#define _YL_MESSAGE_CLASS_

namespace yoctolog_viewer
{

	[System::SerializableAttribute]
	public ref class LogMessageClass: public ISerializable
	{
	public:
		System::String ^										m_pName;
		System::Drawing::Color ^								m_textColor;
		System::Drawing::Color ^								m_bgColor;
		System::Boolean											m_bBold;

		LogMessageClass()
		{
		}

		~LogMessageClass()
		{
		}

		// Serialization
		virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^info, System::Runtime::Serialization::StreamingContext context)
		{
			info->AddValue("m_pName", m_pName);
			info->AddValue("m_textColor", m_textColor);
			info->AddValue("m_bgColor", m_bgColor);
			info->AddValue("m_bBold", m_bBold);
		}

		LogMessageClass(System::Runtime::Serialization::SerializationInfo ^info, System::Runtime::Serialization::StreamingContext context)
		{
			m_pName = info->GetString("m_pName");
			m_textColor = (System::Drawing::Color^)info->GetValue("m_textColor", System::Drawing::Color::typeid);
			m_bgColor = (System::Drawing::Color^)info->GetValue("m_bgColor", System::Drawing::Color::typeid);
			m_bBold = info->GetBoolean("m_bBold");
		}

		//System::String ^		pFormatString;
	};
}

#endif